package com.example.mybatisplus.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatisplus.model.domain.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.example.mybatisplus.model.vo.StatVO;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p >
 *
 * @author ablbb
 * @since 2024-07-22
 */
public interface StudentMapper extends BaseMapper<Student> {

  /*  @Select("SELECT * FROM student WHERE student_role = #{studentRole}")
    Page<Student> getStudentsByRole(Page<Student> page, @Param("studentRole") String studentRole);
*/
    List<StatVO> stat();

    List<StatVO> statmajor();

    List<StatVO> statedu();
}
